package com.think.archive.service.impl;

import com.think.archive.mapper.SysGlobalCodeMapper;
import com.think.archive.model.SysGlobalCode;
import com.think.archive.model.SysGlobalCodeExample;
import com.think.archive.model.SysUserExample;
import com.think.archive.service.SysGlobalCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysGlobalCodeServiceImpl implements SysGlobalCodeService {

    @Autowired
    SysGlobalCodeMapper globalCodeMapper;


    @Override
    public List<SysGlobalCode> selectNextLevelGlobalCode(String globalCode) {
        SysGlobalCodeExample example=new SysGlobalCodeExample();
        SysGlobalCodeExample.Criteria criteria=example.createCriteria();
        criteria.andGlobalCodeLike(globalCode+"__");
        List<SysGlobalCode> globalCodes=globalCodeMapper.selectByExample(example);
        return globalCodes;
    }
}
